// 用户相关数据
const initialValues = {};

export const user = (state = initialValues, action) => {
  // 处理用户数据
  if (action.type === 'user/getUserInfo') {
    return action.payload;
  }

  // logout  清除用户信息
  if (action.type === 'user/clearInfo') {
    return {};
  }

  return state;
};
